package com.fanghuaiming.seata.item.dao.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/****
 * @description: 产品库存表
 * @version:1.0.0
 * @author fanghuaiming
 * @data Created in 2020/11/27 上午11:22
 *
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SeataTccSku {

    /**
     * 主键id
     */
    private Long id;

    /**
     * 产品id
     */
    private Long productId;

    /**
     * 总库存
     */
    private Integer total;

    /**
     * 已用库存
     */
    private Integer used;

    /**
     * 剩余库存
     */
    private Integer residue;

    /**
     * TCC事务锁定的库存
     */
    private Integer frozen;

}
